#pragma once
#include "afxwin.h"


// CCmdAdd dialog

class CCmdAdd : public CDialogEx
{
	DECLARE_DYNAMIC(CCmdAdd)

public:
	CCmdAdd(CWnd* pParent, CMeasureProject& project);   // standard constructor
	virtual ~CCmdAdd();

// Dialog Data
	enum { IDD = IDD_CMD_ADD };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

public:
  virtual BOOL OnInitDialog();

public:
  tstring Name(void) { return name_.GetBuffer(0); }
  tstring cmd(void) { return cmd_.GetBuffer(0); }
  tstring serial(void) { return serial_.GetBuffer(0); }

private:
  CMeasureProject&  project_;
  CString name_;
  CString cmd_;
  CString serial_;
  CComboBox wnd_serial_list_;
};
